import axios from 'axios';
// import Cookies from 'js-cookie';
import request from '@/utils/request.js'


//管理员-查询
export const totalWorkList = (query) => {
  return request.get('/totalWork/totalWorkList', { params: query });
}

//用户-查询
export const totalUserList = (query) => {
  return request.get('/userTotalWork/totalWorkUserList', { params: query });
}


// 新增
export const addUser = (data) => {
  return request.post('/totalWork/addTotalWork', data);
}


// 修改
export const updateUser = (data) => {
  return request.put('/totalWork/editTotalWork', data);
}

// 删除
export const delUser = (userIds) => {
  return request.delete('/totalWork/deleteTotalWork', { data: userIds });
}


